package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.query.DestinationQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> selectByDeep(int deep);

    List<Destination> getDestByRegionId(Long[] rids);

    List<Destination> selectForList(DestinationQuery qo);

    void changeHotValue(@Param("hot") Boolean hot, @Param("id") Long id);

    void setInfo(@Param("info") String info, @Param("id") Long id);

    List<Destination> selectDestByParentId(Long parentId);
}